package cn.ingrun.cloud_disk.controller;

import cn.ingrun.cloud_disk.auth.LoginAuth;
import cn.ingrun.cloud_disk.model.ResponseJson;
import cn.ingrun.cloud_disk.utils.MyResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @RequestMapping("/hello")
    @LoginAuth
    public String hello(){
        System.out.println("controller");
        return "Hello World!";
    }

    @RequestMapping("/testAuth")
    @LoginAuth
    public MyResponse testAuth(){
        return MyResponse.success();
    }

}
